package tt.dz.appserver.util;

import java.io.Serializable;
import java.util.List;

/**
 * 分页帮助类
 * @author 谢龙飞
 *
 */
public class PageModel<T> implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int pageNo; //当前页索引
	private int currentPage; //当前页页码
	private int totalPage; //总页码
	private int pageSize; //每页个数
	private int totalCount; //总个数
	
	private List<T> dataList; //数据

	
	public PageModel() {
		super();
	}

	public PageModel(int pageNo, int currentPage, int totalPage, int pageSize,
			int totalCount, List<T> dataList) {
		super();
		this.pageNo = pageNo;
		this.currentPage = currentPage;
		this.totalPage = totalPage;
		this.pageSize = pageSize;
		this.totalCount = totalCount;
		this.dataList = dataList;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public List<T> getDataList() {
		return dataList;
	}

	public void setDataList(List<T> dataList) {
		this.dataList = dataList;
	}
	
}
